fix(ci): add setup-terraform to prevent flaky test failures#701
Merged
tembleking merged 1 commit intomasterfrom Feb 10, 2026
Merged
fix(ci): add setup-terraform to prevent flaky test failures#701tembleking merged 1 commit intomasterfrom
tembleking merged 1 commit intomasterfrom
Conversation
The terraform-plugin-testing framework dynamically downloads the Terraform CLI from checkpoint-api.hashicorp.com, which is unreliable (timeouts, 502s). Pre-install Terraform via hashicorp/setup-terraform in all acceptance test jobs.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Terraform CLI setup to CI acceptance test jobs to eliminate flaky failures caused by dynamic Terraform downloads during tests.
Changes:
- Adds
hashicorp/setup-terraform@v3to all four acceptance test jobs. - Disables
terraform_wrapperto avoid interfering with Terraform CLI usage from Go tests.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
alecron
approved these changes
Feb 10, 2026
Jujuyeh
approved these changes
Feb 10, 2026
fcracker79
pushed a commit
that referenced
this pull request
Mar 5, 2026
## Summary - Add `hashicorp/setup-terraform@v3` step to all 4 acceptance test jobs (`test-sysdig-secure`, `test-sysdig-monitor`, `test-ibm-monitor`, `test-ibm-secure`) - Uses `terraform_wrapper: false` to avoid interference with programmatic CLI usage from Go tests - Fixes flaky CI failures caused by `terraform-plugin-testing` trying to dynamically download Terraform CLI from `checkpoint-api.hashicorp.com`, which returns timeouts and 502 errors ## Context All 3 test failures in [this CI run](https://github.com/sysdiglabs/terraform-provider-sysdig/actions/runs/21869038206) share the same root cause: ``` failed to find or install Terraform CLI: Get "https://checkpoint-api.hashicorp.com/v1/check/terraform?...": context deadline exceeded ``` ## Test plan - [ ] CI acceptance tests pass without checkpoint-api.hashicorp.com availability issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hashicorp/setup-terraform@v3step to all 4 acceptance test jobs (test-sysdig-secure,test-sysdig-monitor,test-ibm-monitor,test-ibm-secure)terraform_wrapper: falseto avoid interference with programmatic CLI usage from Go teststerraform-plugin-testingtrying to dynamically download Terraform CLI fromcheckpoint-api.hashicorp.com, which returns timeouts and 502 errorsContext
All 3 test failures in this CI run share the same root cause:
Test plan